import { SysConfigItem } from "@app/db/common/entity/SysConfigItem";
import { ArrayMaxSize, IS_JSON, IsArray, IsBoolean, IsEmpty, isEmpty, IsInt, IsJSON, IsNotEmpty, IsNumber, IsObject, IsOptional, IsString, MaxLength, Min, MinLength } from "class-validator";

export default class CreateDto{
    @MaxLength(50)
    @IsNotEmpty()
    @IsString()
    name: string;

    @MaxLength(50)
    @IsNotEmpty()
    @IsString()
    code: string;

    @IsObject()
    config: {[key:string] : SysConfigItem}
    
}